package com.liang.controller;


import com.liang.common.lang.Result;
import com.liang.service.CWeijiService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 李昂
 * @since 2020-11-30
 */
@RestController
@RequestMapping("/weiji")
@AllArgsConstructor
public class CWeijiController {

    private CWeijiService weijiService;

    /**
     * @Author 李昂
     * @Description 个人违纪查询
     * @Date 2020/12/4 13:47
     */
    @GetMapping
    public Result lookweiji(@RequestParam(value = "sno",required = false) String sno) {
        return Result.succ(weijiService.lookweiji(sno));
    }







}
